package com.cacho.s2b.lesson.object;

/** Description: 父类-老师，基础属性：姓名，年龄，学校；基础方法：授课
 *
 **/
public class BaseTeacher {
    private String name;
    private int age;
    private String school;
    public BaseTeacher(String myName,int age,String school){
        name = myName;
        this.age=age;
        this.school=school;
    }
    public void giveLesson() {
        System.out.println("知识点讲解：");
        System.out.println("总结提问：");
    }
    public void introduction(){
        System.out.println("大家好！我是"+school+"的"+name+", 我今年"+age+"岁。");
    }

}
